<!DOCTYPE html>
<html>
<head>
    <title>益多多回收</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" href="${s.base}/mobile/css/weui.min.css">
    <link rel="stylesheet" href="${s.base}/mobile/css/jquery-weui.min.css">
    <link rel="stylesheet" href="${s.base}/mobile/css/base.css">
    <link rel="stylesheet" href="${s.base}/mobile/css/component.css">
    <style type="text/css">
		body,html{background: #e4e4e4;}
    </style>
</head>
<body>
<!--内容开始-->
 <div class="xyg-comp-list1" id="showList">

 </div>
  <!--内容结束-->

<div class="xyg-product-list_loadmore weui-loadmore clearBoth">
	<i class="weui-loading"></i>
	<span class="weui-loadmore__tips">正在加载</span>
</div>

<!--底部菜单开始-->
<div style="width:100%; height:2.5rem;"></div>
<div class="xyg-comp-bottom">
    <div class="xyg-comp-bottom-item">
        <a href="javascript:void(0)" onclick="goFistPage('${memberId}')">
            <img src="${s.base}/mobile/images/menu_icon_1.png"/>
            <div class="xyg-comp-bottom-item-text select-text">首页</div>
        </a>
    </div>
    <div class="xyg-comp-bottom-item">
        <a href="javascript:void(0)" onclick="goGyxcPage('${memberId}')">
            <img src="${s.base}/mobile/images/menu_icon_2_a.png"/>
            <div class="xyg-comp-bottom-item-text">公益宣传</div>
        </a>
    </div>
    <div class="xyg-comp-bottom-item">
        <a href="javascript:void(0)" onclick="goMyPage('${memberId}')">
            <img src="${s.base}/mobile/images/menu_icon_3.png"/>
            <div class="xyg-comp-bottom-item-text">我的</div>
        </a>
    </div>
    <div class="clearBoth"></div>
</div>
</body>
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<script src="${s.base}/mobile/js/jquery-2.1.4.js"></script>
<script src="${s.base}/mobile/js/jquery-weui.js"></script>
<script src="${s.base}/mobile/fonts/iconfont.js"></script>
<script src="${s.base}/mobile/js/component.js"></script>
<script src="${s.base}/mobile/js/base.js"></script>
<script src="${s.base}/mobile/js/window_port.js"></script>

<!--js分享代码开始-->
<input type="hidden" value="${jSTicketShareResponse.appid}" id="appid" />
<input type="hidden" value="${jSTicketShareResponse.fxTitle}" id="fxTitle" />
<input type="hidden" value="${jSTicketShareResponse.fxImgUrl}" id="fxImgUrl" />
<input type="hidden" value="${jSTicketShareResponse.fxDesc}" id="fxDesc" />
<input type="hidden" value="${jSTicketShareResponse.fxUrl}" id="fxUrl" />
<input type="hidden" value="${jSTicketShareResponse.nonceStr}" id="nonceStr" />
<input type="hidden" value="${jSTicketShareResponse.timestamp}" id="timestamp" />
<input type="hidden" value="${jSTicketShareResponse.signature}" id="signature" />
<script src="${s.base}/mobile/js/share.js"></script>
<script type="text/javascript">
	var memberId = '${memberId}';

	var pageStart=0;
	var num=10;
	var loading = false;  //状态标记
	sendPost();
	$(document).ready(function(e) {
		initPage();
		$(document.body).infinite().on("infinite", function() {
			if(loading) return;
			loading = true;
			sendPost();
		});
	});

	function initPage() {
		$(document.body).infinite();
		$(".xyg-product-list_loadmore").show();
	}

	function sendPost() {
		$("#showContent").hide();
		pageStart++;
		$.post("/phone/webArticleJsonList",{
			pageSize : num,
			pageNum : pageStart,
			typeId : "20190802210238038171981461000892",
			removeTag:"1"
		},function(resultInfo){
			if (resultInfo.data!=null && resultInfo.data.length > 0){
				for(var j=0;j<resultInfo.data.length;j++){
					var webArticle = resultInfo.data[j];
					var str='<div class="xyg-comp-list1-item" onclick="getWebArticleDetailPage(\''+memberId+'\',\''+webArticle.id+'\')">\
							<div class="xyg-comp-list1-item-pic">\
							<img src="'+webArticle.picture+'"/>\
							</div>\
							<div class="xyg-comp-list1-item-content">\
							<div class="xyg-comp-list1-content-title font-grade-one">\
							'+webArticle.title+'\
					</div>\
					<div class="xyg-comp-list1-content-time">\
							'+new Date(webArticle.createTime).format("yyyy-MM-dd hh:mm:ss")+'\
					</div>\
					</div>\
					</div>';


					$("#showList").append(str);
					loading = false;
					if(!resultInfo.hasNextPage){
						$(document.body).destroyInfinite();
						$(".xyg-product-list_loadmore").hide();
					}
				}
			}else{
				$(document.body).destroyInfinite();
				$(".xyg-product-list_loadmore").hide();
				// $("#showContent").show();
			}

		},"json");
	}
</script>
</html>
